home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Libraries
/
usr (gcc 1.37 libs)
/
mac
/
fcntl.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-08
|
306b
|
18 lines
#include <fcntl.h>
#include <stdarg.h>
#include <sys/types.h>
int fcntl(int fd, int cmd, ...)
{
int arg;
va_list args;
va_start(args, cmd);
arg = va_arg(args, int);
mysleep(1);
switch(cmd)
{
case F_DUPFD : return dup2(fd, next_fd(arg)); break;
}
}